<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<%@ Page language="vb" Inherits="_2bMatesSite.edit_group_events" ValidateRequest="false" CodeFile="edit_group_events.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="Form1" method="post" runat="server">
	<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0" height="100%">
		<tr>
			<td>
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title">
					<tr>
						<td><asp:literal id="litTitle" runat="server">Edit Your Group</asp:literal></td>
						<td align="right"><asp:literal id="litRightLinks" runat="server"></asp:literal></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="main_table_border">
				<div class="content_trl">
					<table width="740" cellpadding="0" cellspacing="0" class="main_text" border="0">
						<tr>
							<td>
								<asp:hyperlink id="hlEditGroupProfile" runat="server" cssclass="main_text_bold">Basic Group Info</asp:hyperlink>
							</td>
							<td>
								<b><asp:label id="lblEventsShows" runat="server">Events &amp; Shows</asp:label></b>
							</td>
							<td>
								<asp:hyperlink id="hlBands" runat="server"  cssclass="main_text_bold">Bands</asp:hyperlink>
							</td>
							<td align=right>
								<asp:hyperlink id="hlCancelGroup" runat="server" navigateurl="../#"  cssclass="main_text_bold">Cancel Group</asp:hyperlink>
							</td>					
						</tr>
					</table>
				</div>
			</td>
		</tr>		
		<tr>
			<td class="small" height="4">&nbsp;</td>
		</tr>
		<!-- begin form -->
		<tr>
			<td valign="top" class="main_table_border" height="100%">
				<div class="content">
					<table cellspacing="0" cellpadding="0" width="100%" border="0" class="main_text_form">
						<tr>
							<td id="error" valign="top" align="left" colspan="2"><asp:validationsummary id="ValidationSummary1" runat="server" forecolor="#F04C03" cssclass="val_summary" displaymode="List" width="384px" Height="32px"></asp:validationsummary></td>
						</tr>
						<tr>
							<td colspan="2"><asp:label id="lblChangesSubmitted" runat="server" cssclass="main_text_err" visible="False">Group profile has been successfully updated.</asp:label></td>
						</tr>
						<tr>
							<td align="left" colSpan="2"><font class="notes_text">*</font>
								<asp:label id="lblRequiredFields" runat="server">indicates required fields</asp:label>
							</td>
						</tr>
						<tr>
							<td width="35%"><asp:label id="lblEventDate" runat="server" Font-Bold="True">Event Date </asp:label>&nbsp;<font class="notes_text">*</font></td>
							<td nowrap><asp:dropdownlist id=ddlDay runat="server" CssClass="date_field" DataSource="<%# Page %>">
									<asp:ListItem Value="0">Day</asp:ListItem>
								</asp:dropdownlist>&nbsp;
								<asp:dropdownlist id=ddlMonth runat="server" CssClass="date_field" DataSource="<%# Page %>">
									<asp:ListItem Value="0">Month</asp:ListItem>
								</asp:dropdownlist>&nbsp;
								<asp:dropdownlist id=ddlYear runat="server" CssClass="date_field" DataSource="<%# Page %>">
									<asp:ListItem Value="0">Year</asp:ListItem>
								</asp:dropdownlist>
								<asp:customvalidator id="valDate" runat="server" ControlToValidate="ddlYear" ErrorMessage="Please enter correct event date"
									Display="None" OnServerValidate="validateDate" Runat="server"></asp:customvalidator></td>
						</tr>
						<tr>
							<td width="35%"><asp:label id="lblEventTime" runat="server" Font-Bold="True">Event Time </asp:label>&nbsp;<font class="notes_text">*</font></td>
							<td nowrap><asp:dropdownlist id="ddlHours" runat="server" CssClass="date_field" DataSource="<%# Page %>">
									<asp:ListItem Value="0">Hour</asp:ListItem>
								</asp:dropdownlist>&nbsp;
								<asp:dropdownlist id="ddlMinutes" runat="server" CssClass="date_field" DataSource="<%# Page %>">
									<asp:ListItem Value="0">Minutes</asp:ListItem>
								</asp:dropdownlist>&nbsp;
								<asp:dropdownlist id="ddlTime" runat="server" CssClass="date_field" DataSource="<%# Page %>">
									<asp:ListItem Value="0">Time</asp:ListItem>
								</asp:dropdownlist></td>
						</tr>
						<tr>
							<td width="35%"><asp:label id="lblVenue" runat="server" Font-Bold="True">Venue </asp:label>&nbsp;<font class="notes_text">*</font></td>
							<td nowrap><asp:textbox id="txtVenue" runat="server" CssClass="scrollbar" Width="204px" MaxLength="300"
									EnableViewState="False"></asp:textbox>&nbsp;&nbsp;
								<asp:customvalidator id="valVenue" runat="server" ErrorMessage="Please enter venue" Display="None"></asp:customvalidator>
								<asp:customvalidator id="cvHtmlInVenue" runat="server" controltovalidate="txtVenue" errormessage="HTML is not allowed in Venue field" display="None"></asp:customvalidator>
							</td>
						</tr>
						<tr>
							<td><asp:label id="lblCost" runat="server" Font-Bold="True">Cost </asp:label></td>
							<td><asp:textbox id="txtCost" runat="server" CssClass="scrollbar" Width="204px" MaxLength="50" EnableViewState="False"></asp:textbox>
								<asp:customvalidator id="cvHtmlInCost" runat="server" controltovalidate="txtCost" errormessage="HTML is not allowed in Cost field"
								display="None"></asp:customvalidator>
							</td>
						</tr>
						<tr>
							<td><asp:label id="lblAddress" runat="server" Font-Bold="True">Address </asp:label></td>
							<td><asp:textbox id="txtAddress" runat="server" CssClass="scrollbar" Width="204px" MaxLength="100"
									EnableViewState="False"></asp:textbox>
									<asp:customvalidator id="cvHtmlInAddress" runat="server" controltovalidate="txtAddress" errormessage="HTML is not allowed in Address field"
									display="None"></asp:customvalidator>
							</td>
						</tr>
						<tr>
							<td><asp:label id="lblCity" runat="server" Font-Bold="True">City </asp:label>&nbsp;<font class="notes_text">*</font></td>
							<td><asp:textbox id="txtCity" runat="server" CssClass="scrollbar" Width="204px" MaxLength="50" EnableViewState="False"></asp:textbox>&nbsp;&nbsp;
								<asp:customvalidator id="valCity" runat="server" ErrorMessage="Please enter city" Display="None"></asp:customvalidator>
								<asp:customvalidator id="cvHtmlInCity" runat="server" controltovalidate="txtCity" errormessage="HTML is not allowed in City field" display="None"></asp:customvalidator>
							</td>
						</tr>
						<tr>
							<td><asp:label id="lblCountry" runat="server" Font-Bold="True">Country </asp:label></td>
							<td><asp:dropdownlist id="ddlCountry" runat="server" CssClass="scrollbar" Width="204px" DataSource="<%# Page %>"></asp:dropdownlist></td>
						</tr>
						<tr>
							<td><asp:label id="lblZip" runat="server" Font-Bold="True">Post/ZipCode </asp:label></td>
							<td><asp:textbox id="txtZipCode" runat="server" CssClass="scrollbar" Width="204px" MaxLength="10"
									EnableViewState="False"></asp:textbox>&nbsp;&nbsp;<asp:customvalidator id="cvZip" runat="server" ControlToValidate="ddlCountry" ErrorMessage="Please enter Zip/Postal  Code"
									Display="None"></asp:customvalidator>
									<asp:customvalidator id="cvHtmlInZipCode" runat="server" controltovalidate="txtZipCode" errormessage="HTML is not allowed in Zip Code field"
									display="None"></asp:customvalidator>
							</td>
						</tr>
						<tr>
							<td width="35%"><asp:label id="lblDetails" runat="server" Font-Bold="True">Details </asp:label></td>
							<td nowrap><asp:textbox id="txtDetails" runat="server" CssClass="mail_field" Width="422px" MaxLength="1000"
									EnableViewState="False" TextMode="MultiLine" Rows="5"></asp:textbox></td>
						</tr>
						<tr>
							<td class="small" align="right" colSpan="2" height="100%" valign="top"><asp:button id="btnUpdate" runat="server" CssClass="btn" Width="100px" Text="Update Group" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnUpdate_Click"></asp:button></td>
						</tr>
					</table>
					<table cellspacing=0 cellpadding=0 border=0 class="main_text" width="100%">
						<tr id="trEventsTitle" runat="server">
							<td class="title_in"><a name="all_events"></a><asp:label id="lblAllEvents" runat=server>All Events and Shows</asp:label></td>
						</tr>
						<tr>
							<td class=small height=4>&nbsp;</td>
						</tr>
						<tr id="trUpperPager" runat="server">
							<td valign="top" align="center" class="small">
								<pager:datagridpager runat="server" id="dgPagerUp"></pager:datagridpager>
							</td>
						</tr>
						<tr>
							<td valign="top">
								<P align="center"><ASP:DATAGRID id="dgGroupEvents" runat="server" Width="97%" AllowSorting="True" CellPadding="3"
										PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" GridLines="None" AutoGenerateColumns="False"
										ShowHeader="False">
										<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
										<Columns>
											<asp:TemplateColumn>
												<ItemTemplate>
													<asp:label id="lblDate" runat="server" Font-Bold="True">Date:</asp:label>
													<asp:label id="Label8" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "EventDate") %>
													</asp:label>
													<br>
													<asp:label id="lblTime" runat="server" Font-Bold="True">Time:</asp:label>
													<asp:label id="Label7" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "EventTime") %>
													</asp:label>
													<br>
													<asp:label id="lblVenueName" runat="server" Font-Bold="True">Venue:</asp:label>
													<asp:label id="lblVenue" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "Venue") %>
													</asp:label>
													<br>
													<asp:label id="lblAddressName" runat="server" Font-Bold="True">Address:</asp:label>
													<asp:label id="lblAddress" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "Address") %>
													</asp:label>
													<br>
													<asp:label id="lblCityName" runat="server" Font-Bold="True">City:</asp:label>
													<asp:label id="lblCity" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "City") %>
													</asp:label>
													<br>
													<asp:label id="lblZipCodename" runat="server" Font-Bold="True">Post code:</asp:label>
													<asp:label id="lblZipCode" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "ZipCode") %>
													</asp:label>
													<br>
													<asp:label id="lblPriceName" runat="server" Font-Bold="True">Price:</asp:label>
													<asp:label id="lblPrice" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "Cost") %>
													</asp:label>
													<br>
													<asp:label id="lblDetailsName" runat="server" Font-Bold="True">Description:</asp:label>
													<asp:label id="lblDetails" runat="server">
														<%# DataBinder.Eval(Container.DataItem, "Details") %>
													</asp:label>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn>
												<ItemStyle HorizontalAlign="Center"></ItemStyle>
												<ItemTemplate>
													<asp:LinkButton id="lbEditGroupEvent" runat="server"  cssclass="main_text_bold" Visible='<%# DataBinder.Eval(Container.DataItem, "DelGroupEventVisibility") %>' CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' CommandName="Edit">Edit</asp:LinkButton>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn>
												<ItemStyle HorizontalAlign="Center"></ItemStyle>
												<ItemTemplate>
													<asp:LinkButton id="lbDeleteGroup" runat="server"  cssclass="main_text_bold" Visible='<%# DataBinder.Eval(Container.DataItem, "DelGroupEventVisibility") %>' CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' CommandName="Delete">Delete</asp:LinkButton>
												</ItemTemplate>
											</asp:TemplateColumn>
										</Columns>
										<PagerStyle VerticalAlign="Top" Visible="False" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
									</ASP:DATAGRID></P>
							</td>
						</tr>
						<tr id="trBottomPager" runat="server">
							<td valign="top" align="center" class="small">
								<pager:datagridpager runat="server" id="dgPager"></pager:datagridpager>
							</td>
						</tr>
				</table>
			</td>
		</tr>
		<!-- end form -->
	</table>
</form>
